﻿@model StockShark.Models.BrokerageAccount

@{
    ViewBag.Title = "Nowy rachunek";
    ViewBag.Header = "Nowy rachunek";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Parametry rachunku</legend>

        @Html.HiddenFor(model => model.UserId)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>        
    </fieldset>
    <p>
        <input type="submit" value="Otwórz rachunek" /> |
        @Html.ActionLink("Wróć do listy", "Index")
    </p>
}


